// src/main/java/jsu/hx/lost/Mapper/StatMapper.java
package jsu.hx.lost.Mapper;

import jsu.hx.lost.Model.dto.StatData;
import jsu.hx.lost.Model.entity.LoginLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface StatMapper {
    List<StatData> selectDailyStats(
            @Param("startDate") String startDate,
            @Param("endDate") String endDate
    );
    @Insert("INSERT INTO login_log(user_id, login_time) VALUES(#{userId}, #{loginTime})")
    int insertLoginLog(LoginLog loginLog);
}